<%--
功能：显示客户信息
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ tag import="java.math.BigDecimal" %>
<%@ attribute name="userName" type="java.lang.String"%>
<%@ attribute name="membership" type="com.probiz.estore.common.model.customer.Membership"%>
<%@ attribute name="area" type="java.lang.String"%>

<ul class="user">
	<li class="u_icon">
		<a style="cursor:default" class="grade_bg">
			<c:choose>
				<c:when test="${not empty membership}">
					<span class="grade${membership.membershipLevel}"></span>
				</c:when>
				<c:otherwise>
					<span class="grade0"></span><%--not a customer --%>
				</c:otherwise>
			</c:choose>
		</a>
	</li>
	<li class="u_name">${userName}</li>
	<li class="u_level">
		
		<c:choose>
			<c:when test="${not empty membership}">
				(${membership.membershipName})
			</c:when>
			<c:otherwise>
				(<fmt:message key="productDetail.productReview.notCustomer"/>)<%--not a customer --%>
			</c:otherwise>
		</c:choose>
	</li>
	<li class="u_address">${area}</li>
</ul>
